package service.impl;

import Dao.impl.studentDaoimpl;
import Dao.studentDao;
import entity.Man;
import service.studentDaoservice;

import java.util.List;

public class studentDaoserviceimpl implements studentDaoservice {

    studentDao studentDao = new studentDaoimpl();

    public List<Man> getAll() {
        return studentDao.getAll();
    }

    @Override
    public int addStudent(String name,int age,String mojor) {
        return studentDao.addStudent(name,age,mojor);
    }

    @Override
    public int updateStudent(int id,String name,int age,String mojor) {
        return studentDao.updateStudent(id,name,age,mojor);
    }

    @Override
    public int deleteStudent(int id) {
        return studentDao.deleteStudent(id);
    }
}
